package com.murray.shop.background.service.impl;

import com.murray.shop.background.mapper.OrdersMapper;
import com.murray.shop.background.pojo.Orders;
import com.murray.shop.background.service.OrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Murray
 * @Date 2021/8/21
 * @Time 15:49
 */
@Service
public class OrderServiceImpl implements OrdersService {

    @Autowired
    OrdersMapper ordersMapper;

    @Override
    public List<Orders> selectOrdersList() {
        return ordersMapper.selectAllOrderList();
    }

    @Override
    public Integer updateOrder(Integer orderId, String shipName, String shipNumber) {
        return ordersMapper.updateOrder(orderId, shipName, shipNumber);
    }
}
